package com.tuanzi.loan.web.lazy.statistics;

import com.tuanzi.loan.business.service.statistics.BigClueStatChannelService;
import com.tuanzi.loan.core.lazy.BaseLazyDataModel;
import com.tuanzi.loan.core.util.SpringContextHolder;
import com.tuanzi.loan.core.vo.PageSearcher;
import com.tuanzi.loan.vo.request.statistics.BigClueStatChannelsearchRequest;
import com.tuanzi.loan.vo.response.statistics.BigClueStatChannelsearchResponse;
import org.springframework.data.domain.Page;

public class StatBigClueChannelLazyDataModel  extends BaseLazyDataModel<BigClueStatChannelsearchRequest,BigClueStatChannelsearchResponse> {
    private BigClueStatChannelService service = SpringContextHolder.getBean(BigClueStatChannelService.class);
    public StatBigClueChannelLazyDataModel(BigClueStatChannelsearchRequest bigClueStatChannelsearchRequest) {
        super(bigClueStatChannelsearchRequest);
    }

    @Override
    protected Page<BigClueStatChannelsearchResponse> doLoad(PageSearcher<BigClueStatChannelsearchRequest> pageSearcher) {
        return service.list(pageSearcher);
    }
}
